package com.easytopit.demo.spring.mvc.service;

import java.util.List;

import com.easytopit.demo.spring.mvc.domain.User;

public interface JSONService {

	/**
	 * 添加用户
	 * @param user
	 */
	public void add(User user);

	/**
	 * 删除
	 * @param id
	 * @return
	 */
	public User remove(Integer id);

	/**
	 * 更新
	 * @param user
	 * @return
	 */
	public Boolean update(User user);

	/**
	 * 查询
	 * @param user
	 * @return
	 */
	public List<User> query(User user);

	/**
	 * 根据ID查询
	 * @param id
	 * @return
	 */
	public User queryId(Integer id);
}
